home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PVDRIVER / SS24DRV.ZIP / SS24DRVA.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-04-24  |  2KB  |  81 lines

  1. @echo off
  2. cls
  3. if "%1"=="" goto Example
  4. echo ────────────────────────────────────────────────────────────────
  5. echo                 Diamond Computer Systems, Inc.
  6. echo        SpeedSTAR-24 Drivers and Utilities Installation
  7. echo ────────────────────────────────────────────────────────────────
  8. echo Note:
  9. echo This program will load the SpeedSTAR-24 Driver and Utility files to
  10. echo your hard drive under a directory named \SS24. You must use this
  11. echo install program from the root directory of your floppy disk drive.
  12. echo .
  13. echo If you do not want to continue, press Ctrl-Break now or
  14. pause
  15.  
  16. :doinstall
  17. ds %1 3000
  18. if errorlevel==3 goto InvalidDrive
  19. if errorlevel==2 goto InstallError
  20. goto makedir
  21.  
  22. :InvalidDrive
  23. echo -
  24. echo Note:
  25. echo "%1" is an invalid drive name.  Please use the drive's letter
  26. echo followed by a colon:
  27. goto Example
  28.  
  29. :Example
  30. echo -
  31. echo Note:
  32. echo Please specify which drive to install the SpeedSTAR-24
  33. echo UTILITIES & DRIVERS, for example:
  34. echo -
  35. echo   C: [Enter]
  36. echo -
  37. pause
  38. goto Quit
  39.  
  40. :MakeDir
  41. if exist %1\SS24\util\*.* goto DirExists
  42. goto CopyFiles
  43.  
  44. :DirExists
  45. echo -
  46. echo WARNING:
  47. echo The %1\SS24 directory already exists. Press Ctrl-Break now if you don't
  48. echo want to overwrite the contents of that directory.
  49. pause
  50.  
  51. :CopyFiles
  52. cd \
  53. echo -
  54. echo Now copying the SpeedSTAR-24 Utilities & Drivers files
  55. echo to %1\SS24...
  56. drivers -D -o  %1\
  57. copy ss24.gif %1\ss24 > nul
  58. copy gis.exe %1\ss24 > nul
  59. copy vmode.com %1\ss24\util > nul
  60. copy install2.bat %1\ss24 > nul
  61. copy end.bat %1\ss24 > nul
  62. cd > %1\$$$.bat
  63. %1\ss24\install2.bat %1
  64. goto End
  65.  
  66. :InstallError
  67. echo -
  68. echo ERROR:
  69. echo The installation of the SpeedSTAR-24 Utilities & Drivers
  70. echo to %1\SS24 was unsuccessful.
  71. echo -
  72. echo This may be because your hard disk is full.
  73. echo The SpeedSTAR 24 Utilities & Drivers requires at least 2MB
  74. echo of free disk space.
  75. pause
  76. goto Quit
  77.  
  78. :End
  79.  
  80. :Quit
  81.